﻿<UserControl x:Class="Display.GamePage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="400" d:DesignWidth="800" xmlns:dataInput="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Input" xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data">

    <Grid x:Name="LayoutRoot" Background="White" HorizontalAlignment="Center" VerticalAlignment="Center" Width="800" Height="400">
        <TextBlock Text="Please reload the page" FontFamily="Comic Sans MS" FontSize="34" HorizontalAlignment="Left" Margin="168,12,0,332" Name="TitleLabel" Width="435" TextAlignment="Center" />
        <Image Height="150" HorizontalAlignment="Left" Margin="12,74,0,0" Name="QuestionImage" Stretch="Uniform" VerticalAlignment="Top" Width="150" Source="/Display;component/Images/Icon.jpg" />
        <TextBlock Height="111" HorizontalAlignment="Left" Margin="168,113,0,0" Name="QuestionTextLabel" VerticalAlignment="Top" Width="435" FontFamily="Comic Sans MS" FontSize="15" Text="" TextWrapping="Wrap" />
        <TextBlock Height="33" HorizontalAlignment="Left" Margin="168,74,0,0" Name="QuestionNoLabel" VerticalAlignment="Top" Width="435" FontFamily="Comic Sans MS" FontSize="22" Text="" TextWrapping="Wrap" />
        <TextBlock Height="75" HorizontalAlignment="Left" Margin="168,230,0,0" Name="ALabel" VerticalAlignment="Top" Width="215" FontFamily="Comic Sans MS" FontSize="12" Text="" TextWrapping="Wrap" />
        <TextBlock Height="75" HorizontalAlignment="Left" Margin="388,230,0,0" Name="BLabel" VerticalAlignment="Top" Width="215" FontFamily="Comic Sans MS" FontSize="12" TextWrapping="Wrap" />
        <TextBlock Height="75" HorizontalAlignment="Left" Margin="168,311,0,0" Name="CLabel" VerticalAlignment="Top" Width="215" FontFamily="Comic Sans MS" FontSize="12" TextWrapping="Wrap" />
        <TextBlock Height="75" HorizontalAlignment="Left" Margin="388,311,0,0" Name="DLabel" VerticalAlignment="Top" Width="215" FontFamily="Comic Sans MS" FontSize="12" TextWrapping="Wrap" />
        <TextBox Background="#FF101010" Foreground="#FFD2D2D2" Height="156" HorizontalAlignment="Left" Margin="12,230,0,0" Name="Console" VerticalAlignment="Top" Width="150" VerticalScrollBarVisibility="Auto" IsReadOnly="True" />
        <ListBox Height="312" HorizontalAlignment="Left" Margin="609,74,0,0" Name="ScoreboardNames" VerticalAlignment="Top" Width="128" FontFamily="Comic Sans MS"></ListBox>
        <ListBox Height="312" HorizontalAlignment="Left" Margin="743,74,0,0" Name="ScoreboardScores" VerticalAlignment="Top" Width="45" FontFamily="Comic Sans MS" />
        <Button Content="Return" Height="56" HorizontalAlignment="Left" Margin="12,12,0,0" Name="ReturnButton" VerticalAlignment="Top" Width="150" />
        <TextBlock Height="156" HorizontalAlignment="Left" Margin="168,230,0,0" Name="InputCorrectAnswer" Text="TextBlock" VerticalAlignment="Top" Width="435" Visibility="Visible" Opacity="0" TextWrapping="Wrap" />
    </Grid>
    <UserControl.Resources>
        <Storyboard x:Key="ACorrect">
            <DoubleAnimation Storyboard.TargetName="BLabel" Storyboard.TargetProperty="Opacity" From="1.0" To="0.2" Duration="0:0:0.5" />
            <DoubleAnimation Storyboard.TargetName="CLabel" Storyboard.TargetProperty="Opacity" From="1.0" To="0.2" Duration="0:0:0.5" />
            <DoubleAnimation Storyboard.TargetName="DLabel" Storyboard.TargetProperty="Opacity" From="1.0" To="0.2" Duration="0:0:0.5" />
        </Storyboard>                                                                                                             
        <Storyboard x:Key="BCorrect">                                                                                             
            <DoubleAnimation Storyboard.TargetName="ALabel" Storyboard.TargetProperty="Opacity" From="1.0" To="0.2" Duration="0:0:0.5" />
            <DoubleAnimation Storyboard.TargetName="CLabel" Storyboard.TargetProperty="Opacity" From="1.0" To="0.2" Duration="0:0:0.5" />
            <DoubleAnimation Storyboard.TargetName="DLabel" Storyboard.TargetProperty="Opacity" From="1.0" To="0.2" Duration="0:0:0.5" />
        </Storyboard>
        <Storyboard x:Key="CCorrect">
            <DoubleAnimation Storyboard.TargetName="ALabel" Storyboard.TargetProperty="Opacity" From="1.0" To="0.2" Duration="0:0:0.5" />
            <DoubleAnimation Storyboard.TargetName="BLabel" Storyboard.TargetProperty="Opacity" From="1.0" To="0.2" Duration="0:0:0.5" />
            <DoubleAnimation Storyboard.TargetName="DLabel" Storyboard.TargetProperty="Opacity" From="1.0" To="0.2" Duration="0:0:0.5" />
        </Storyboard>                                                                                                             
        <Storyboard x:Key="DCorrect">                                                                                             
            <DoubleAnimation Storyboard.TargetName="ALabel" Storyboard.TargetProperty="Opacity" From="1.0" To="0.2" Duration="0:0:0.5" />
            <DoubleAnimation Storyboard.TargetName="BLabel" Storyboard.TargetProperty="Opacity" From="1.0" To="0.2" Duration="0:0:0.5" />
            <DoubleAnimation Storyboard.TargetName="CLabel" Storyboard.TargetProperty="Opacity" From="1.0" To="0.2" Duration="0:0:0.5" />
        </Storyboard>
        <Storyboard x:Key="InputCorrect">
            <DoubleAnimation Storyboard.TargetName="InputCorrectAnswer" Storyboard.TargetProperty="Opacity" To="1.0" Duration="0:0:0.5" />
        </Storyboard>
        <Storyboard x:Key="FadeOut">
            <DoubleAnimation Storyboard.TargetName="QuestionTextLabel" Storyboard.TargetProperty="Opacity" To="0.0" Duration="0:0:0.5" />
            <DoubleAnimation Storyboard.TargetName="QuestionNoLabel" Storyboard.TargetProperty="Opacity" To="0.0" Duration="0:0:0.5 " />
            <DoubleAnimation Storyboard.TargetName="InputCorrectAnswer" Storyboard.TargetProperty="Opacity" To="0.0" Duration="0:0:0.5" />
            <DoubleAnimation Storyboard.TargetName="QuestionImage" Storyboard.TargetProperty="Opacity" To="0.0" Duration="0:0:0.5 " />
            <DoubleAnimation Storyboard.TargetName="ALabel" Storyboard.TargetProperty="Opacity" To="0.0" Duration="0:0:0.5" />
            <DoubleAnimation Storyboard.TargetName="BLabel" Storyboard.TargetProperty="Opacity" To="0.0" Duration="0:0:0.5" />
            <DoubleAnimation Storyboard.TargetName="CLabel" Storyboard.TargetProperty="Opacity" To="0.0" Duration="0:0:0.5" />
            <DoubleAnimation Storyboard.TargetName="DLabel" Storyboard.TargetProperty="Opacity" To="0.0" Duration="0:0:0.5" />
        </Storyboard>
        <Storyboard x:Key="FadeIn">
            <DoubleAnimation Storyboard.TargetName="QuestionTextLabel" Storyboard.TargetProperty="Opacity" To="1.0" Duration="0:0:0.5" />
            <DoubleAnimation Storyboard.TargetName="QuestionNoLabel" Storyboard.TargetProperty="Opacity" To="1.0" Duration="0:0:0.5 " />
            <DoubleAnimation Storyboard.TargetName="QuestionImage" Storyboard.TargetProperty="Opacity" To="1.0" Duration="0:0:0.5 " />
            <DoubleAnimation Storyboard.TargetName="ALabel" Storyboard.TargetProperty="Opacity" To="1.0" Duration="0:0:0.5" />
            <DoubleAnimation Storyboard.TargetName="BLabel" Storyboard.TargetProperty="Opacity" To="1.0" Duration="0:0:0.5" />
            <DoubleAnimation Storyboard.TargetName="CLabel" Storyboard.TargetProperty="Opacity" To="1.0" Duration="0:0:0.5" />
            <DoubleAnimation Storyboard.TargetName="DLabel" Storyboard.TargetProperty="Opacity" To="1.0" Duration="0:0:0.5" />
        </Storyboard>
    </UserControl.Resources>
</UserControl>
